<%@ page language="java" import="pos.dominio.*,java.util.*, pos.dato.*" %>
<!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>PlantaTuSemilla.com</title>
<link rel="stylesheet" type="text/css" media="screen" href="css/General.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/Formulario.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/Index.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/NoticEnlac.css" />

</head>
<body>

<%
	
	
    String pidP = request.getParameter("id");
    Integer a = new Integer(request.getParameter("idC"));
    
    


%>
<jsp:include  page="cabecera.html"/>


<div id="div_principal2">
	<tr valign ="middle" align="center">
		<td  colspan="6"><b>Votar</b></td>
	</tr>
<% 
 	String evento = (String) session.getAttribute("eventoID");
    Evento p = EventoManager.getInstance().getEvento(evento);
    p.setHaSidoVotado(true);
    EventoManager.getInstance().update(evento,a+1);
%>
			<form action="FrontController?res=accionesPosibles.jsp" method="post">
			
			<tr align="center" id="eventos4">
				
				<p><b>Ya has votado al evento : </b><%=p.getNoticia()%> </p>
				<p><b>El total de votos obtenidos son :</b> <%=a+1%> </p>
                 
			</tr>
			<td colspan="3" align="center"><input type="submit" value="Ir a acciones posibles"/></td>
		 

</div>

		<jsp:include page="piePagina.html" /> 
</body>
</html>